package com.detech.sbom.base.satoken.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 微信小程序属性配置
 *
 */
@Configuration
@ConfigurationProperties(prefix = "wechat.applet")
public class WechatAppletProperties {

    private String openidUrl = "https://api.weixin.qq.com/sns/jscode2session";
    private String phonenumberUrl = "https://api.weixin.qq.com/wxa/business/getuserphonenumber";
    private String tokenUrl = "https://api.weixin.qq.com/cgi-bin/token";
    private String appid;
    private String secret;
    private String openidGrantType;
    private String tokenGrantType;

    public String getOpenidUrl() {
        return openidUrl;
    }

    public void setOpenidUrl(String openidUrl) {
        this.openidUrl = openidUrl;
    }

    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public String getPhonenumberUrl() {
        return phonenumberUrl;
    }

    public void setPhonenumberUrl(String phonenumberUrl) {
        this.phonenumberUrl = phonenumberUrl;
    }

    public String getOpenidGrantType() {
        return openidGrantType;
    }

    public void setOpenidGrantType(String openidGrantType) {
        this.openidGrantType = openidGrantType;
    }

    public String getTokenGrantType() {
        return tokenGrantType;
    }

    public void setTokenGrantType(String tokenGrantType) {
        this.tokenGrantType = tokenGrantType;
    }

    public String getTokenUrl() {
        return tokenUrl;
    }

    public void setTokenUrl(String tokenUrl) {
        this.tokenUrl = tokenUrl;
    }
}
